all: BowlWars

BowlWars: src/main.c src/lib-osx/*
	-rm -R BowlWars.app
	/bin/sh scripts/bundle.sh BowlWars
	gcc -I. -I/usr/X11/include src/main.c src/lib-osx/* -framework Cocoa -framework OpenGL -o BowlWars.app/Contents/MacOS/BowlWars
	cp data/objects/* BowlWars.app/Contents/Resources/
	cp data/images/* BowlWars.app/Contents/Resources/
	cp data/fontMaps/* BowlWars.app/Contents/Resources/
	cp data/shaders/* BowlWars.app/Contents/Resources/